<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns="http://www.w3.org/1999/xhtml"
                template="/template.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">
    <ui:define name="content">
       
        <f:view>
            <h:form>
                <h1><h:outputText value="Create/Edit"/></h1>
                <p:panel header="FAQ DETAILS">
                <h:panelGrid columns="2">
                   
                    <h:outputLabel value="Question:" for="question" />
                    <h:outputLabel id="question" value="#{fAQBean.faq.question}" title="Question" ><br/><br/></h:outputLabel>

                    <h:outputLabel value="Answer:" for="answer" />
                    <h:outputLabel id="answer" value="#{fAQBean.faq.answer}" title="Answer" ><br/><br/></h:outputLabel>

                    <h:outputLabel value="CreatedDate  : " for="createdDate" />
                    <h:outputLabel id="createdDate" value="#{fAQBean.faq.createdDate}" title="CreatedDate" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                        <br/><br/>
                    </h:outputLabel>
                 

                 
                </h:panelGrid>
                    <p:commandButton value="Back" action="#{fAQBean.listFAQs}" ajax="false"/>
                    <p:commandButton value="Edit" action="#{fAQBean.detailFAQs(fAQBean.faq)}" ajax="false"/>
                </p:panel>
               
            </h:form>
        </f:view>


    </ui:define>
</ui:composition>